package com.cn.wang.demo;

public class Singleton {
	private Singleton(){
		
	}
	private static class SingletonFactory{
		private static Singleton instance = new Singleton();
	}
	
	public Singleton getInstance(){
		return SingletonFactory.instance;
	}
}
